package com.yikome.delivery.dto;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnore;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class DeliverySearchDTO implements Serializable{

	private static final long serialVersionUID = 4502844849966603761L;

	private Long deliveryId ; 
	
	@Excel(name = "仓库", orderNum = "1", width = 15, needMerge = true)
	private String storehouseName ; 
	
	@Excel(name = "发货单号", orderNum = "2", width = 30, needMerge = true)
	private String deliveryCode ; //发货单号
	
	@Excel(name = "代收金额", orderNum = "3", width = 10, needMerge = true)
	private BigDecimal deliveryPrice;
	
	private Integer status; //   已创建(0) | 已派单(10) | 已发货(20) | 已签收(30) | 已拒收(-20) | 已取消(-10)  
	
	@Excel(name = "发货单状态", orderNum = "4", width = 15, needMerge = true)
	private String statusName ; 
	
	@Excel(name = "客户留言", orderNum = "5", width = 20, needMerge = true)
	private String remark ; //用户备注
	
	@Excel(name = "收件人", orderNum = "6", width = 10, needMerge = true)
	private String consignee;
	@Excel(name = "电话", orderNum = "7", width = 15, needMerge = true)
    private String tel;
	@Excel(name = "城市", orderNum = "8", width = 10, needMerge = true)
    private String city;
	@Excel(name = "区域", orderNum = "9", width = 10, needMerge = true)
    private String district;
	@Excel(name = "地址明细", orderNum = "10", width = 20, needMerge = true)
    private String detail;
	@Excel(name = "物流编号", orderNum = "11", width = 20, needMerge = true)
    private String logisticsCode ;
    
//	@Excel(name = "货代-物流费用", orderNum = "12", width = 15, needMerge = true)
//    private BigDecimal shippingFreight ; //货代运费
//	@Excel(name = "货代-回款", orderNum = "13", width = 15, needMerge = true)
//    private BigDecimal paymentAmount ; //回款金额
    
	@Excel(name = "创建日期", orderNum = "14", width = 15, needMerge = true)
    private Date createdAt ;
    
	@ExcelCollection(name = "发货单明细", orderNum = "15")
    private List<DeliveryDetailsSearchDTO> deliveryDetailsSearchDTOs;
}
